package com.hrprojectback.service.impl.KaoQinGuanLiServiceImpl;

import com.hrprojectback.dto.BanBie;
import com.hrprojectback.dto.User;
import com.hrprojectback.mapper.BanBieMapper;
import com.hrprojectback.service.KaoQinGuanLiService.BanBieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BanBieServiceImpl implements BanBieService {

    @Autowired
    private BanBieMapper banBieMapper;
    @Override
    public Integer getBanBieCounts(String BanBieName, String BanBieCode) {
        Integer banBieCounts = banBieMapper.getBanBieCounts(BanBieName, BanBieCode);
        return banBieCounts;
    }

    @Override
    public List<BanBie> getBanbie(String banBieCode, String banBieName, int pageStart, int pageSize) {
        List<BanBie> banBies = banBieMapper.getBanbie(banBieCode, banBieName, pageStart, pageSize);
        return banBies;
    }
}
